<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>模板字符串</title>
    <style>

    </style>
</head>
<body>
    <script>
        // 1.ES6 引入了的新的声明字符串的方式  [  ``   ] [  ''  ][   " "   ]  
        let strOne = `字符串`;
        console.log(strOne,typeof strOne);

        // 2.内容中可以直接出现换行符号 
        let strSecond = `<ul>
                            <li>书名</li>
                            <li>ID</li>
                            <li>编码</li>
                            <li>作者</li>
                            <li>发表时间</li>
                        </ul>`;
        console.log(strSecond, typeof strSecond);
        

        // 3.变量拼接
        let strIn = 'math';
        let strOut = `${strIn} +  learning`;
        console.log(strOut);




        


    </script>
    
    
</body>
</html>